package com.mnb.base.controller;

import com.mnb.base.entity.StRiverR;
import com.mnb.base.entity.StRsvrR;
import com.mnb.base.service.StRsvrRService;
import com.mnb.base.service.impl.StRsvrRServiceImpl;
import com.mnb.common.utils.R;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;
import java.util.List;

/**
 * (ST_RSVR_R)表控制层
 *
 * @author xxxxx
 */
@RestController
@RequestMapping("/st_rsvr_r")
public class StRsvrRController {
    /**
     * 服务对象
     */
    @Resource
    private StRsvrRService stRsvrRService;


    @RequestMapping("/getList")
    public R getList(StRsvrR stRsvrR) {
        return stRsvrRService.getList(stRsvrR);
    }

    @RequestMapping("/insert")
    public R insert(StRsvrR stRsvrR) {
        return stRsvrRService.insert(stRsvrR);
    }

    @RequestMapping("/update")
    public R update(StRsvrR stRsvrR) {
        return stRsvrRService.update(stRsvrR);
    }

    @RequestMapping("/delete")
    public R delete(@RequestBody List<StRsvrR> list) {
        return stRsvrRService.delete(list);
    }
}
